package com.xbongbong.pro.workorder.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.workorder.pojo.WorkOrderPersonAddressPojo;
import com.xbongbong.pro.workorder.pojo.WorkOrderPersonListServicePojo;
import com.xbongbong.pro.workorder.pojo.WorkOrderPersonUserIdPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author ly1666
 * @date 2019/3/21 上午11:16
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class WorkOrderPersonSaveDTO extends BaseDTO {
    private static final long serialVersionUID = -6910570562469113300L;
    /**
     * 模板id
     */
    @NotNull(message = "{dto.msg.workOrderPersonSave.id.NotNull}")
    private Long id;

    @NotNull(message = "{dto.msg.workOrderPersonSave.serviceHumanId.NotNull}")
    WorkOrderPersonUserIdPojo serviceHumanId;

    @NotNull(message = "{dto.msg.workOrderPersonSave.service.NotNull}")
    List<WorkOrderPersonListServicePojo> service;

    @NotNull(message = "{dto.msg.workOrderPersonSave.address.NotNull}")
    WorkOrderPersonAddressPojo address;
}
